﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Resource
/// </summary>
public class Resource
{
	public Resource(long id, double latitude, double longitude, bool anonAds, byte comments, short autoExpAnonDays, short autoExpNonAnonDays, bool renewAds, bool adApprove, byte currency, string mail, bool isMasterResource)
	{
        ID = id;
        Latitude = latitude;
        Longitude = longitude;
        AllowAnonAds = anonAds;
        Comments = comments;
        AutoExpAnonDays = autoExpAnonDays;
        AutoExpNonAnonDays = autoExpNonAnonDays;
        RenewAds = renewAds;
        AdApprove = adApprove;
        Currency = currency;
        AdminMail = mail;
        ExistsMasterResource = isMasterResource;
	}

    public void SetAdminMail(string adminMail)
    {
        AdminMail = adminMail;
    }

    public void SetLatitude(double latitude)
    {
        Latitude = latitude;
    }

    public void SetLongitude(double longitude)
    {
        Longitude = longitude;
    }

    public long ID { get; private set; }
    public double Latitude { get; private set; }
    public double Longitude { get; private set; }
    public bool AllowAnonAds { get; private set; }
    public byte Comments { get; private set; }
    public short AutoExpNonAnonDays { get; private set; }
    public short AutoExpAnonDays { get; private set; }
    public bool RenewAds { get; private set; }
    public bool AdApprove { get; private set; }
    public byte Currency { get; private set; }
    public string AdminMail { get; private set; }
    public bool ExistsMasterResource { get; private set; }
}